package com.tian.mapper;

import com.tian.entity.RetryMessage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RetryMessageMapper {
    int deleteByPrimaryKey(Long id);

    int insert(RetryMessage record);

    RetryMessage selectByPrimaryKey(Long id);

    RetryMessage selectByReqId(String reqId);

    List<RetryMessage> selectAll();

    int updateByPrimaryKey(RetryMessage record);

    List<RetryMessage> selectRetryMessage(@Param("type") Integer type, @Param("status") Integer status);

    int countRetryMessage(@Param("type") Integer type, @Param("status") Integer status);
}